package com.qf.electronic.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 
 * </p>
 *
 * @author wu
 * @since 2023-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("defect")
public class Defect extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 缺陷编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 缺陷名称
     */
    @TableField("name")
    @NotEmpty(message = "缺陷名称不能为空")
    private String name;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

}
